package com.framewiki.example.factory;

import com.cdkjframework.exceptions.GlobalException;
import com.cdkjframework.util.log.LogUtils;
import com.framewiki.example.client.RmsUserClient;
import com.framewiki.example.entity.RmsUserDto;
import org.springframework.cloud.openfeign.FallbackFactory;

import java.util.ArrayList;
import java.util.List;

/**
 * @ProjectName: framewiki-example
 * @Package: com.framewiki.example.factory
 * @ClassName: RmsUserFactory
 * @Description: Java 类说明
 * @Author: xiaLin
 * @Version: 1.0
 */
public class RmsUserFactory implements FallbackFactory<RmsUserClient> {

    /**
     * 日志工具类
     */
    private final LogUtils logUtils = LogUtils.getLogger(RmsUserFactory.class);

    /**
     * 创建返回结果
     *
     * @param throwable 异常信息
     * @return 返回 client
     */
    @Override
    public RmsUserClient create(Throwable throwable) {
        return new RmsUserClient() {
            /**
             * 查询批量的账户信息
             *
             * @param userDto 条件
             * @return 账户信息
             */
            @Override
            public List<RmsUserDto> listRmsUser(RmsUserDto userDto) {
                return null;
            }
        };
    }
}
